<?php

use Illuminate\Routing\Router;

Admin::registerAuthRoutes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index');
    Route::group(['prefix'=>'basic'], function(Router $router) {
        $router->resource('/schools', SchoolController::class);
        $router->resource('/users', UserController::class);
        $router->resource('/settings', SettingController::class);
        $router->resource('/teachers', TeacherController::class);
        $router->resource('/guardians', GuardianController::class);
        $router->resource('/schools/{school}/settings', SchoolSettingController::class);
    });
});
